﻿using System;

namespace md5Tools
{
    internal class PhotoMd5Entity
    {
        public int Id { get; set; }
        public string FileName { get; set; }
        public string OldFilePath { get; set; }
        public string FilePath { get; set; }
        public string Md5 { get; set; }
        public String PaperFile { get; set; }
        public int Count { get; set; }
        public DateTime CreateTime { get; set; }

        public DateTime UpdateTime { get; set; }
        public string Description { get; set; }
        public int DeleteState { get; set; }

        public PhotoMd5Entity()
        {
        }

        public PhotoMd5Entity(string name, string oldfilePath, string md5)
        {
            FileName = name;
            OldFilePath = oldfilePath;
            Md5 = md5;
            Count = 1;
        }

        public PhotoMd5Entity(int id, string fileName, string oldFilePath, string filePath, string md5, string paperFile, int count, DateTime createTime, DateTime updateTime, string description, int deleteState)
        {
            Id = id;
            FileName = fileName;
            OldFilePath = oldFilePath;
            FilePath = filePath;
            Md5 = md5;
            PaperFile = paperFile;
            Count = count;
            CreateTime = createTime;
            UpdateTime = updateTime;
            Description = description;
            DeleteState = deleteState;
        }
    }
}
